<template>
		 <view class="" >
		 	<web-view :src="url" 
		 
		 	></web-view>
		 </view>
</template>

<script setup>
	import {
		onLoad
	} from '@dcloudio/uni-app';
	import {
		ref
	} from 'vue';

	const url = ref('');
	onLoad((options) => {
		const viewerUrl = '/static/pdf/web/viewer.html'
		const fileUrl = decodeURIComponent(options.fileUrl)
		console.log('fileUrl',fileUrl);
		url.value = viewerUrl + '?file=' + encodeURIComponent(fileUrl)
		console.log('url.value',url.value);
	});
</script>

<style lang="scss" scoped></style>